package com.ice.delay.task.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ice.delay.task.core.model.DelayTaskUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author wangwei
 * @Date 2023/5/12 09:47
 */
@Mapper
public interface DelayTaskUserDao extends BaseMapper<DelayTaskUser> {

    default DelayTaskUser getByAccountCode(String accountCode) {
        return this.selectOne(new LambdaQueryWrapper<DelayTaskUser>().eq(DelayTaskUser::getAccountCode, accountCode));
    }
}
